#pragma once
#include "SFC_Object.h"
#include "SFC_Types.h"
/** \brief Label control
 */

class SFC_Label : public SFC_Object
{
private:
	int font;
	Surface Background;
public:
	SFC_String Text;
	SFC_Bool Transform = true;
	SFC_Int Color, FrontColor = 0x000000;
	SFC_Bool HCenter = true, VCenter = true;
	SetEventHandle<std::string> TextChanged;
	SetEventHandle<int> ColorChanged;
	SetEventHandle<bool> TransformChanged;
	
	SFC_Label();
	void LoadRes() override;
	void Paint() override;
	void EventRouter(SFC_Event &Event) override;
};